<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>08元素放大与过渡</title>
  <style>
    div{
      width: 100px;
      height: 100px;
      background-color: #ff0000;
      margin: 100px auto 0;
      transition: 2s;/*过渡时间*/
    }
    div:hover{
      background-color: blue;
      /*变换缩放*/
      transform: scale(2);
      border-radius: 30px;

    }
  </style>
</head>
<body>
<div></div>
</body>
</html>